import java.util.Arrays;
import java.util.Scanner;

//字符串排序(字典顺序)
public class Test40 {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        System.out.println("请输入10个字符串：");
        String[] arr = new String[10];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = console.nextLine();
        }
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
